package com.bsoft.gol.hcs.specialist.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;
import com.bsoft.gol.hcs.specialist.entity.DiseaseCollectConfigEntity;

import java.util.List;

/**
 * 病种采集dao
 *
 * @author niule
 */
public abstract class DiseaseCollectConfigDAO extends HibernateSupportDelegateDAO<DiseaseCollectConfigEntity> {

    @DAOMethod(sql = " from DiseaseCollectConfigEntity where diseaseTypeId =:diseaseTypeId order by createTime")
    public abstract List<DiseaseCollectConfigEntity> queryDiseaseCollectConfigByDiseaseTypeId(@DAOParam("diseaseTypeId") Long diseaseTypeId);

    @DAOMethod(sql = " delete from DiseaseCollectConfigEntity where diseaseTypeId =:diseaseTypeId ")
    public abstract void deleteByDiseaseTypeId(@DAOParam("diseaseTypeId") Long diseaseTypeId);
}
